package com.spark.check

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import com.spark.common.BaseActivity
import com.spark.common.Const

class CheckContainerActivity : BaseActivity() {
    private var currType = std_chk_notify

    companion object {
        const val std_chk_notify = 0

        fun actionStart(host: Activity, type: Int) {
            val intent = Intent(host, CheckContainerActivity::class.java)
            intent.putExtra(Const.tag_type, type)
            host.startActivity(intent)
        }
    }

    override fun contentResId(): Int {
        return R.layout.activity_empty_container
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        currType = intent.getIntExtra(Const.tag_type, std_chk_notify)

        when (currType) {
            std_chk_notify -> {
                loadRootFragment(R.id.fl_content, StdCheckNotifyFragment.newInstance(), false, true)
            }
        }
    }
}